package net.orange.console.genius;


/**
 * File genius is a set delegate of File operation object in system console. it
 * can call the file operation object directly in scripting language directly,
 * but can through the file genius using the "$file" in program.
 */
public class FileGenius {

	/**
	 * The unique instance of file genius in system.
	 */
	private static FileGenius instance = null;

	/**
	 * Disabled the default constructor, it need to get object instance through
	 * the getInstance method.
	 */
	private FileGenius() {
		super();
	}

	/**
	 * Get the unique file genius instance.
	 * 
	 * @return The the department genius instance.
	 * @throws Exception
	 */
	public static FileGenius getInstance() throws Exception {
		if (instance == null) {
			instance = new FileGenius();
		}
		return instance;
	}

}
